using Nop.Data.Mapping;
using Nop.Plugin.Widgets.Ribbon.Domain;


namespace Nop.Plugin.Widgets.Ribbon.Data
{
    public partial class RibbonProductMap : NopEntityTypeConfiguration<RibbonProduct>
    {
        public RibbonProductMap()
        {
            this.ToTable("Ribbon_Product_Mapping");
            this.HasKey(rp => rp.Id);

            this.HasRequired(rp => rp.Ribbon)
                .WithMany(r => r.RibbonProducts)
                .HasForeignKey(rp => rp.RibbonId);
        }
    }
}